Skip to main content

scrollerEndDrag

Type

message

Summary

Sent when a scroll initiating drag is finished.

Syntax

scrollerEndDrag <pDidDecelerate>

Description

The scrollerEndDrag message is sent when a scroll that was initiated by dragging on a scroller control created using the mobileControlCreate command finishes.

Handle the scrollerEndDrag message if you want to move LiveCode controls, make changes to the interface or set the appropriate scroll properties of groups and fields to get a native scrolling effect.

The scrollerEndDrag message is sent to the object containing the script that created the scroller control.

Parameters

NameTypeDescription

pDidDecelerate

Either 'true' or 'false' depending on whether the scroll decelerated or not (iOS Only)

Examples

on scrollerEndDrag
put "Scroll by dragging finished" into field "scroller status"
end scrollerEndDrag

command: mobileControlCreate, mobileControlDelete, mobileControlSet

function: mobileControlGet, mobileControlTarget, mobileControls

message: scrollerEndDecelerate, scrollerBeginDecelerate, scrollerBeginDrag, scrollerDidScroll, scrollerScrollToTop

Compatibility and Support

Introduced

LiveCode 4.5.3

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?